package com.Factory;

import com.Dao.DaoImpl.OrdersDaoImpl;
import com.Dao.OrdersDao;
import com.Service.ServiceImpl.OrdersServiceImpl;
import org.springframework.beans.factory.FactoryBean;

public class OrdersDaoFactoryBean implements FactoryBean {

    @Override
    public Object getObject() throws Exception {
        return new OrdersDaoImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return OrdersDao.class;
    }

    @Override//单例
    public boolean isSingleton() {
        return true;
    }
}
